Skip to content

use relocated ko copy to resolve module symbols - #12

Merged
GhostDog788 merged 1 commit into
mainfrom
dev
May 28, 2026
Merged

GhostDog788 merged 1 commit into
mainfrom
dev

Conversation

@GhostDog788

Copy link
Copy Markdown
Owner

Global variables symbols resolve to a wrong address. GDB's DWARF-based address resolution returns the wrong runtime address for file-scope static variables. The solution it to create a copy of the ko file and replace the section addresses to the relocated ones using objcopy --change-section-address, then serve gdb the relocated ko file.

@GhostDog788
GhostDog788 merged commit 1a301aa into main May 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant